/**
 * @class yijs.config
 * @fileOverview 客户端配置文件
 * @author 谢文浩
 * @email mohaiguyan12@126.com
 * @date 2010-01-26
 * Copyright (c) 2010-2010 谢文浩
 */
yijs = yijs || {};
yijs.VIEWS = "views";
yijs.config = {
	/**基础路径，根路径*/
	basePath : "app:/",
	/**语言*/
	language : "chinese",
	/**数据库路径*/
	dbPath : "db/yt.db3",
	/**默认视图*/
	view : "default"
}
/**
 * 所有模板对应的名称
 */
yijs.config.viewName = {
	/**登录模板*/
	login : "login.xsl",
	zuosa : "zuosa.xsl",
	zuosaItems : "zuosa_items.xsl",	
	digu : "digu.xsl",
	diguItems : "digu_items.xsl",
	friendsList : "friends_list.xsl",		
	preLoad : "preLoad.xsl"
}
yijs.config.table = {
	user : "user",
	option : "option",
	msg : "msg",
	temp : "temp",
	friend : "friend"
}
/**
 *微博
 */
yijs.config.BLOGS = [{"controller" : "Digu","name":"嘀咕网"},
				     {"controller" : "Zuosa","name":"做啥网"}];
/**
* 嘀咕控制器所使用的配置信息
*/
yijs.config.digu = {
	viewName : {
		main : "digu.xsl",
		items : "digu_items.xsl",
		friendsList : "friends_list.xsl"			
	},
	count : 20,
	field : {
		authorized : "authorized",
		users : "users",
		user       : "user",
		friends     : ['id','name','screen_name','location','description','profile_image_url','url','gender','followers_count','friends_count','favourites_count'],
		count      : "message"
	},
	idPrefix    : "digu_",
	contentContainer : ".MAIN_CONTENT",
	cls   : {
		main 							: "MAIN",
		main_top					    : "main_top",
		main_top_nav					: "main_top_nav",
		set								: "set",
		my_detalls						: "my_detalls",
		face							: "face",
		username						: "username",
		show_name						: "show_name",
		register_name					: "register_name",
		location						: "location",
		gender							: "gender",
		followers_count					: "followers_count",
		friends_count					: "friends_count",
		full_face						: "full_face",
		navItemOver    				    : "LEFT_NAV_item_hover",
		navItemCurrent 		 			: "LEFT_NAV_item_current",
		mySetLiHover 		 			: "my_set_li_hover",
		msgItemOdd 			 			: "status_odd",
		actionItemsContainer 			: "action_items_container",
		nativeWindowControllerContainer : "nativeWindow_controller_container",
		nativeWindowClose 				: "close",
		nativeWindowMini 				: "mini",
		main_bottom						: "main_bottom",
		bottom_nav_header				: "bottom_nav_header",
		bottom_nav_content				: "bottom_nav_content",
		nav_li_current					: "nav_li_current",
		nav_li_hover					: "nav_li_hover",
		nav_li_mask						: "nav_li_mask",
		nav_header_slider				: "nav_header_slider",
		nav 							: {
			msg : "msg",
			friend : "friend",
			square : "square",
			letter : "letter"
		}	
	},
	effect : {
		mainTopNavShow : {duration:"slow",easing: 'easeInOutBounce'},
		mainTopNavHide : {duration:"slow",easing: 'easeOutBounce'},
		content : {duration:500,easing: "easeInBack"},
		bottomNavMask : {duration:'normal',easing: 'easeInOutBack'}
	},
	faceSizes : ["72x72","48x48","32x32","24x24"],
	myFaceSize : [32,32],
	actionCls : {
		userMsg : "userMsg",
		friendsMsg : "friendsMsg",
		publicMsg : "publicMsg",
		friends	  : "friends"	
	}
}					 
 /**
  * 做啥控制器所使用的配置信息
  */
yijs.config.zuosa = {
		faceSize : [50,60],
		userField : {
			id : "id",
			name : "screen_name",
			face : "profile_image_url",
			createdTimer : "created_at",
			position : "location",
			description : "description"
		}
	
}

/**服务器端返回的数据类型*/
yijs.config.dataType = ["json","xml","rss","atom"];
/**
 * ajax配置
 */
yijs.config.ajax = {
	applyTo : ".MAIN"
}
